import iconList from "@/const/iconList";

export const tableOption = {
  "addBtn": false,
  "delBtn": false,
  "addTitle": "新 增 分 类",
  "lazy": true,
  "rowKey": "catId",
  "border": true,
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "column": [
    {
      "type": "input",
      "label": "分类id",
      "prop": "catId",
      "editDisabled": true,
      "addDisplay": false,
      "width": 120,
      "align": "left",
      "rowKey": true
    }, {
      "type": "tree",
      "label": "上级分类",
      "prop": "parentCid",
      "addDisabled": true,
      "dicData": [],
      "value": '0'
    }, {
      "type": "input",
      "label": "分类名称",
      "width": 200,
      "prop": "name"
    }, {
      "label": "是否显示",
      "prop": "showStatus",
      "type": "switch",
      "value": 1,
      "dicData": [{value: 0}, {value: 1}],
      "slot": true
    }, {
      "type": "input",
      "label": "排序",
      "value": 0,
      "prop": "sort"
    }, {
      "type": "icon",
      "label": "图标地址",
      "prop": "icon",
      "iconList": iconList,
      "slot": true
    }, {
      "type": "input",
      "label": "计量单位",
      "prop": "productUnit"
    }, {
      "type": "number",
      "label": "商品数量",
      "editDisabled": true,
      "value": 0,
      "prop": "productCount"
    }
  ]
}
